/*
 * Message.cpp
 *
 *  Created on: Aug 12, 2012
 *      Author: nam20485
 */

#include "Message.h"
#include "Arduino.h"

Message::Message(const BYTE* aBytes)
	: TYPE(STANDARD)
{
	// nothing to de-serialize
}

Message::~Message()
{
}

unsigned int Message::ToBytes(BYTE* aBytes /* = 0*/) const
{
	if (aBytes != 0)
	{
		memcpy(aBytes, this, sizeof(Message));
	}
	return sizeof(Message);
}



